package com.rupertjones.globalcron.server;

import com.rupertjones.globalcron.common.AbstractBuilder;
import com.rupertjones.globalcron.common.domain.Host;

/**
 * <p>&copy Rupert Jones 2011,2012</p>
 *
 * @author rup
 */
public class HostBuilder extends AbstractBuilder<Host> {

    public HostBuilder() {
        super(new Host());
        entity.setEnabled(true);
        entity.setHostname("hostname");
        entity.setName("name");
        entity.setTimezoneId("Australia/Victoria");
    }

    public HostBuilder withName(String name) {
        entity.setName(name);
        return this;
    }

    public HostBuilder withHostname(String hostname) {
        entity.setHostname(hostname);
        return this;
    }
}
